<%= error_messages_for 'question' %>
<div id=create_question>
  <% form_for @question do |f| %>
    <p> Wording: <%= f.text_field :wording, :size => '130%' %>   </p>
    <p> Type: <%= f.select :kind, @question_types %>             </p>
    <p> Recommended maximum time: <%= text_field_tag 'question[minutes]' %> minutes <%= text_field_tag 'question[seconds]' %> seconds </p>
    <div id="answers">
      <%= render :partial => 'answer', :collection => @question.answers %>
    </div>
    <p> <%= add_answer_field_link "Add answer" %> </p>
    <%= tree_multiple_select(:question, :category_ids, @root_categories, :id, :name)%>
    <p> <%= submit_tag "Create question" %>            </p>
  <% end %>
</div>
